import json

from app.main import app
import uvicorn
from core.config import get_setting


if __name__ == '__main__':
    import sys

    with open("model_1.json", "w", encoding="utf-8") as f:
        json.dump(list(sys.modules.keys()), f, indent=4)
    uvicorn.run(app, host=get_setting().HTTP.host, port=get_setting().HTTP.port)
